/*$(document).ready(function() {

	$('#submit').click(function() {	
		onload();
 	}); 
 	$("#submit").keyup(function(event) {
		if (event.keyCode == 13){
			onload();
		};
	});//回车
});
function onload(){
	var account=$("#account").val(); //获取登录账号
    var password=$("#password").val();  //获取登录密码


	    var account=$("#username").val(); //获取登录账号
	    var password=$("#password").val();  //获取登录密码

		if(account!="" && password!=""){
			$.post(onloadURL,
				{
					account:account,
					password:password
				},
				function(data){
					if(data)
	                {				
						sessionStorage.userName = data.userName;//将变量存储到本地sessionStorage
						sessionStorage.userId = data.id;//将变量存储到本地sessionStorage
						sessionStorage.userAcount = data.userAcount;
						sessionStorage.userPassword = data.userPassword; 
						window.location.href='../blogCMS.html';	
					}
					else
					{
						$("#message").text("账户密码错误,请重新输入");
					}
		
			});			
		}
		
 	}); 
});*/

//	if(account!="" && password!=""){
//		$.post(onloadURL,
//			{
//				account:account,
//				password:password
//			},
//			function(data){
//				if(data == "success")
//                {				
//					sessionStorage.userName = data.userName;//将变量存储到本地sessionStorage
//					sessionStorage.userId = data.id;//将变量存储到本地sessionStorage
//					sessionStorage.userAcount = data.userAcount;
//					sessionStorage.userPassword = data.userPassword; 
//					window.location.href='../blogCMS.html';	
//				}
//				else
//				{
//					//$("#message").text("账户密码错误,请重新输入");
//				}
//	
//		});			
//	}


